﻿@model Flixr.Models.DetailVM

@{
    ViewBag.Title = "Details";
}

<h2>Details</h2>

<div>
    <h4>Movie</h4>
    <hr />
    <dl class="dl-horizontal">
        <dt>
            @Html.DisplayNameFor(model => model.Movie.Title)
        </dt>

        <dd>
            @Html.DisplayFor(model => model.Movie.Title)
        </dd>

        <dt>
            @Html.DisplayNameFor(model => model.Movie.Rating)
        </dt>

        <dd>
            @Html.DisplayFor(model => model.Movie.Rating)
        </dd>

        <dt>
            @Html.DisplayNameFor(model => model.Movie.Description)
        </dt>

        <dd>
            @Html.DisplayFor(model => model.Movie.Description)
        </dd>

        <dt>
            @Html.DisplayNameFor(model => model.Movie.MoviePoster)
        </dt>

        <dd>
            <img src="@Model.Image" />
        </dd>

    </dl>
    <hr />
    <h3>Starring:</h3>
    <ul>
        @foreach (var a in Model.MyActors)
        {
            <li>@a.Name</li>
        }
    </ul>
</div>
<p>
    @Html.ActionLink("Edit", "Edit", new { id = Model.Movie.MovieId }) |
    @Html.ActionLink("Back to List", "Index")
</p>
